#include "addorcreatecontactdialog.h"
#include "ui_addorcreatecontactdialog.h"

AddOrCreateContactDialog::AddOrCreateContactDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AddOrCreateContactDialog)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);//设置无标题栏与边框
    this->setAttribute(Qt::WA_DeleteOnClose);//设置调用close函数时销毁界面

    QIcon icon(":/images/add_friend_normal.png");
    ui->pushButton_3->setIcon(icon);
    ui->pushButton_3->setIconSize(QSize(20, 20)); // 设置图标大小，根据实际情况调整
    ui->pushButton_3->setLayoutDirection(Qt::LeftToRight);

    ui->pushButton_4->setIcon(icon);
    ui->pushButton_4->setIconSize(QSize(20, 20)); // 设置图标大小，根据实际情况调整
    ui->pushButton_4->setLayoutDirection(Qt::LeftToRight);
}

AddOrCreateContactDialog::~AddOrCreateContactDialog()
{
    delete ui;
}



void AddOrCreateContactDialog::on_pushButton_4_clicked()
{
    emit add_contact_sig();
    return;
}

